package com.qf.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Description: 公用常量
 * @Data: 2022/9/9 8:28
 * @Pacakge: com.qf.config
 * @ClassName: Config
 * @Author: fan
 */
@Configuration
public class Config {
    @Bean
    @ConfigurationProperties(prefix = "jdbc")
    public DruidDataSource druidDataSource(){
        DruidDataSource druidDataSource = new DruidDataSource();
        return druidDataSource;
    }
}
